package com.jiangyg.mall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 类描述：优惠券与产品关联
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 21:33:06
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mc_coupon_spu")
public class CouponSpu implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@TableField("id")
	private Long id;

	/**
	 * 优惠券id
	 */
	@TableField("coupon_id")
	private Long couponId;

	/**
	 * spu_id
	 */
	@TableField("spu_id")
	private Long spuId;

	/**
	 * spu_name
	 */
	@TableField("spu_name")
	private String spuName;


}
